package com.aixx.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 *  如果前后端分离，这个是提供给前端信息和数据的类
 * @author shkstart
 * @create 2021-01-25 17:40
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String messgae;
    private T date;

    public CommonResult(Integer code,String messgae){
        this(code, messgae, null);

//        this.code=code;
//        this.messgae=messgae;

    }


}
